<?php

	$user = array(
	              'name'        => 'user',
	              'id'          => 'user',
	              'maxlength'   => '100',
	              'size'        => '25',
				  'class'		=> 'require'
	            );
				
			$password = array(
				  'name'        => 'password',
	              'id'          => 'password',
				  'type'		=> 'password',
	              'maxlength'   => '100',
	              'size'        => '25',
				  'class'		=> 'require'
			);
			
			$attributes = array('id' => 'addServForm', 'onSubmit'=>'return  (checkForm(this))');
			$action = "form/addServer";
			
			echo form_open($action, $attributes);
			echo "<table>";
			echo "<tr><td width='100px'>UserName<td>".form_input($user);
			echo "<tr><td>Password<td>".form_input($password);
			echo "<tr><td> <lu><li><a onClick='if(checkForm($(\"addServForm\"))) ";
		
			$homeUrl = "./home";
			$listAllHdUrl = "./home/listAllClientHD";
			
			echo "{new Ajax.Updater($(\"rightContainer\"), \"./login/checkLogin\", {parameters: { username:$(\"user\").value, password:$(\"password\").value}}); setTimeout(\"location.reload(true)\",1000);}";

			
			
			echo "'>Login</a><td><div id='return'></div>";
			echo "</table>";




?>